package com.arui.rpc.transport;

import com.arui.rpc.serializer.CommonSerializer;

/**
 * @Auther: zhanyurui
 * @Date: 2021-08-09 00:31
 * @Description: 服务器类通用接口
 */
public interface RpcServer {
    int DEFAULT_SERIALIZER = CommonSerializer.KRYO_SERIALIZER;

    void start();

    <T> void publishService(T service, String serviceName);
}
